// 创建运行时的报错信息日志模块

const pino = require('pino');
const multiStream = require('./logConfig.js');



// 创建htpp日志实例

const runningLogger = pino({
  name: 'running_logs',
  level: 'trace',
  timestamp: () => `,"time": "${new Date(Date.now()).toLocaleString()}"`,
  formatters: {
    level: (label) => {
      return {
        level: label
      }
    }
  }
}, multiStream);

// 导出日志实例

module.exports = runningLogger;